/* @flow */

import React, { Component } from 'react';
import {
  View,
  Text,
  StyleSheet,
} from 'react-native';

import { Provider } from 'react-redux';
import { createStore } from 'redux';
import AppReducer from '../ReduxComponent/reducers/AppReducers'
import RootStack from './AppRoot'

const store = createStore(AppReducer)

const AppProvider = () => {
    return (
      //KR-1 包裹一层Provider   之后进入被包裹控件内部 进行关联处理
        <Provider store={store}>
          <RootStack />
        </Provider>
    )
};



export default AppProvider;
